@extends('layouts.default')
@section('title','用户注册')
@section('content')
     <div class="offset-md-2 col-md-8">
         <div class="card">
             <div class="card-header d-flex justify-content-center pt-3">
                 <h5>新用户注册</h5>
             </div>
             <div class="card-body">
                 @include('shared._errors')
                 <form action="{{route('users.store')}}" method="POST">
                     @csrf
                     <div class="mt-3">
                         <label for="name">姓名</label>
                         <input type="text" id="name" name="name" class="form-control" value="{{old('name')}}"/>
                     </div>
                     <div class="mt-3">
                         <label for="email">邮箱</label>
                         <input type="email" id="email" name="email" class="form-control" value="{{old('email')}}"/>
                     </div>
                     <div class="mt-3">
                         <label for="password">密码</label>
                         <input type="password" id="password" name="password" class="form-control"/>
                     </div>
                     <div class="mt-3">
                         <label for="password_confirmation">密码</label>
                         <input type="password" id="password_confirmation" name="password_confirmation" class="form-control"/>
                     </div>
                     <div class="mt-3 d-flex justify-content-center">
                         <button type="submit" class="btn btn-primary">提交</button>
                     </div>
                 </form>
             </div>
         </div>
     </div>
@stop
